#!/usr/bin/ bash
docker-compose -p snkr_local_server -f docker-compose_snkr.yml down
docker-compose -p snkr_local_server -f docker-compose_snkr.yml build
docker-compose -p snkr_local_server -f docker-compose_snkr.yml up -d
docker-compose -p snkr_local_server -f docker-compose_snkr.yml exec -T snkr_server flask db init
docker-compose -p snkr_local_server -f docker-compose_snkr.yml exec -T snkr_server flask db migrate
docker-compose -p snkr_local_server -f docker-compose_snkr.yml exec -T snkr_server flask db upgrade
docker-compose -p snkr_local_server -f docker-compose_snkr.yml restart